﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Decoration.Models.Models
{
    public class Base_DictInfo
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }

        /// <summary>
        /// 数据分组类型
        /// </summary>
        public int DictTypeId { get; set; }

        /// <summary>
        /// 数据项
        /// </summary>
        [MaxLength(50)]
        public string DictName { get; set; } = null!;

        /// <summary>
        /// 数据值
        /// </summary>
        public int DictValue { get; set; }

        /// <summary>
        /// 数据描述
        /// </summary>
        public string? DictDesc { get; set; }

        /// <summary>
        /// 数据顺序
        /// </summary>
        public int? DictOrder { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 数据项状态，1正常，0无效，-1删除
        /// </summary>
        public int Status { get; set; } = 1;
    }
}
